import { ref} from 'vue'
import { defineStore } from 'pinia'

export const useUserData = defineStore('userData', () => {
  const data = ref({'kkkk':'k'}); //保存当前登录的管理员信息
  const flag = ref(false);        //判断是否需要打开正在加载中
  return {data,flag}
}, {
  persist: {
    enabled: true,
  },
}

)
